<legend class='hyc-legend'>
    <span>分供方线路列表</span>
</legend>
<div class="row">
    <div class="col-md-1 text-right top7">分供方</div>
    <div class="col-md-2">
        <div class="form-group">
            <button type="button" class="btn btn-default admin-select select hyc-width" ng-model="queryRoute.userId" bs-options="subList.id as subList.realName for subList in subList" bs-select placeholder="---请选择---">
            </button>
        </div>
    </div>
    <div class="col-md-1 text-right top7">起始地</div>
    <div class="col-md-2">
        <div class="form-group">
            <button type="button" class="btn btn-default admin-select select hyc-width" ng-model="queryRoute.orginCode" bs-options="orginList.code as orginList.name for orginList in orginList" bs-select placeholder="---请选择---">
            </button>
        </div>
    </div>
    <div class="col-md-1 text-right top7">目的地</div>
    <div class="col-md-2">
        <div class="form-group">
            <button type="button" class="btn btn-default admin-select select hyc-width" ng-model="queryRoute.destCode" bs-options="destList.code as destList.name for destList in destList" bs-select placeholder="---请选择---">
            </button>
        </div>
    </div>
    <div class="col-md-3 text-center">
        <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
        <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>&nbsp;&nbsp;&nbsp;
        <div class="btn btn-default btn-warning btn-sm" ui-sref="user-route-edit({routeTitle: '新增线路'})" >新增线路</div>
    </div>
</div>
<table class="table table-bordered" style="margin-top: 20px;">
    <tr>
        <th class="text-center">分供方账号</th>
        <th class="text-center">分供方名称</th>
        <th class="text-center">起始地</th>
        <th class="text-center">目的地</th>
        <th class="text-center">操作</th>
    </tr>
    <tr ng-repeat="item in routeList track by $index" ng-if="routeList.length > 0">
        <td class="text-center">{{item.phone}}</td>
        <td class="text-center">{{item.name}}</td>
        <td class="text-center">{{item.orginName}}</td>
        <td class="text-center">{{item.destName}}</td>
        <td class="text-center">
            <a ui-sref="user-route-edit({routeTitle: '修改线路', id: item.id})">修改</a>&nbsp;
        </td>
    </tr>
    <tr ng-if="routeList.length <= 0">
        <td class="text-center" colspan="5">暂无符合条件数据</td>
    </tr>
</table>
<div ng-include="pageIncludeUrl" ng-if="routeList.length > 0"></div>